|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.utility.EvaluatorObjective
public class EvaluatorObjective
Evaulator for an objective. In the current implementation it makes no sense to create this type of object.
| Constructor Summary | |
|---|---|
EvaluatorObjective()
Creates a new evaluator for an objective with a zero weight. |
|
EvaluatorObjective(EvaluatorObjective e)
Copies the data from the given EvaluatorObjective. |
|
| Method Summary | |
|---|---|
EvaluatorObjective |
clone()
|
java.lang.Double |
getEvaluation(UtilitySpace uspace,
Bid bid,
int index)
This method returns the utility of the value of an issue. |
boolean |
getHasWeight()
|
EVALUATORTYPE |
getType()
|
double |
getWeight()
|
java.lang.String |
isComplete(Objective whichobj)
Check whether the evaluator has enough information to make an evaluation. |
void |
loadFromXML(SimpleElement pRoot)
Method to |
void |
lockWeight()
Locks the weight of this Evaluator. |
void |
setHasWeight(boolean doesHaveWeight)
|
void |
setWeight(double wt)
Sets the weigth with which an Objective or Issue is evaluated. |
SimpleElement |
setXML(SimpleElement evalObj)
Sets weights and evaluator properties for the object in SimpleElement representation that is passed to it. |
void |
unlockWeight()
Unlock the weight of this evaluator. |
boolean |
weightLocked()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvaluatorObjective()
public EvaluatorObjective(EvaluatorObjective e)
e - other EvaluatorObjective| Method Detail |
|---|
public EvaluatorObjective clone()
clone in interface Evaluatorclone in class java.lang.Objectpublic double getWeight()
getWeight in interface Evaluatorpublic void setWeight(double wt)
Evaluator
setWeight in interface Evaluatorwt - The new weight.public void lockWeight()
lockWeight in interface Evaluatorpublic void unlockWeight()
unlockWeight in interface Evaluatorpublic void setHasWeight(boolean doesHaveWeight)
doesHaveWeight - signals that this objective has a weight.public boolean getHasWeight()
public boolean weightLocked()
weightLocked in interface Evaluator
public java.lang.Double getEvaluation(UtilitySpace uspace,
Bid bid,
int index)
Evaluator
getEvaluation in interface Evaluatoruspace - preference profilebid - in which the value is contained.index - of the issue in the bid.
public EVALUATORTYPE getType()
getType in interface Evaluatorpublic void loadFromXML(SimpleElement pRoot)
Evaluator
loadFromXML in interface Evaluatorpublic SimpleElement setXML(SimpleElement evalObj)
evalObj - The object of which to set the evaluation properties.
public java.lang.String isComplete(Objective whichobj)
Evaluator
isComplete in interface Evaluatorwhichobj - is the objective/issue to which this evaluator is attached.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||